---
page_title: "cloudflare_user Data Source - Cloudflare"
subcategory: ""
description: |-
  Use this data source to retrieve information about the currently authenticated user.
---

# cloudflare_user (Data Source)

Use this data source to retrieve information about the currently authenticated user.

## Example Usage

```terraform
data "cloudflare_user" "me" {}
data "cloudflare_api_token_permission_groups" "all" {}

resource "cloudflare_api_token" "example" {
  name = "Terraform Cloud (Terraform)"
  policy {
    permission_groups = [
      data.cloudflare_api_token_permission_groups.all.user["User Details Read"],

    ]
    resources = {
      "com.cloudflare.api.user.${data.cloudflare_user.me.id}" = "*",
    }
  }
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `email` (String) The user's email address.
- `id` (String) The user's unique identifier.
- `username` (String) The user's username.


